package com.bwf.state;

/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/5/19 14:34
 * @Copyright 博为峰
 */
public class JoinDemo implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            Thread.yield();//礼让
            System.out.println(Thread.currentThread().getName() + ":i=" + i);
        }
    }
}
